<script>
import { useStore } from '@/store';
import { updateMini } from '@/utils/updateApp';

export default {
  onLaunch: async function (options) {
    console.log('App onLaunch', options);

    useStore().getEnv();
  },
  onShow: function () {
    // #ifndef APP || H5
    updateMini();
    // #endif
  }
};
</script>

<style lang="scss">
/*每个页面公共css */
page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #f7f7f7;
}

view,
scroll-view {
  box-sizing: border-box;
}

.view-bg {
  //height: 100%;
  background: url('@/assets/images/bg.png') no-repeat;
  background-size: contain;
  //background-position: 100% -calc(-$uni-padding-top + 44px);
  background-attachment: fixed;

  &:before {
    content: '';
    display: block;
    width: 100%;
    height: 200rpx;
  }
}

/* 针对特定元素隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
</style>
